// vue.config.js
const port = 9086 // dev port


module.exports = {
    lintOnSave: false,// eslint-loader 是否在保存的时候检查
// 配置代理
    devServer: {
        port: port,
        open: false,
        overlay: {
            warnings: false,
            errors: true
        },
        proxy: {
            '/dev_api': {
                target: `http://124.70.103.155:8080/`,
                changeOrigin: true,
                pathRewrite: {
                    '^/dev_api': ''
                }
            }
        }
    },
// scss 配置
    css: {
        loaderOptions: {
            sass: {
                prependData: `@import "@/assets/css/variables.scss";`
            }
        }
    }
}
